﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
using DoAnTN.Buissiness;
namespace DoAnTN
{
    public partial class Form1 : Form
    {
        PhongDAO pDAO = new PhongDAO();
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            //SqlConnection conn = new SqlConnection("Data Source=(local);Initial Catalog=quanLyKhachSan;Integrated Security=True");
            //SqlDataAdapter dataAdapter = new SqlDataAdapter("select * from Phong",conn);
            //DataTable dataTable = new DataTable();
            //dataAdapter.Fill(dataTable);
            //dataGridViewX1.DataSource = dataTable;
           // dataGridViewX1.DataSource = pDAO.selectPhong();
        }
    }
}
